import { pa } from 'element-plus/es/locales.mjs'
import request from '../utils/request'

export function getVideoPage(status, page, quantity) {
    return request({
        url: '/admin/video/audit/page',
        method: 'get',
        params: {
            status: status,
            page: page,
            quantity: quantity
        }
    })
}

export function getVideoDetail(vid) {
    return request({
        url: '/admin/video/audit/getone',
        method: 'get',
        params: {
            vid: vid,
        }
    })
}

export function getVideoTotal(status) {
    return request({
        url: '/admin/video/audit/total',
        method: 'get',
        params: {
            status: status,
        }
    })
}

export function updateStatus(vid, status) {
    return request({
        url: '/user/video/change/status',
        method: 'post',
        params: {
            vid: vid,
            status: status
        }
    })
}